/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package entity;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Collection;
import javax.persistence.Entity;
import javax.persistence.ManyToMany;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;

/**
 *
 * @author Andy
 */
@Entity(name = "RawMaterial")
public class RawMaterialEntity extends ProductEntity implements Serializable {
    private int lotSize;
    private int leadTime;
    private int shelfLife;

   
    @ManyToMany
     private Collection<VendorEntity> vendor;

    public Collection<VendorEntity> getVendor() {
        return vendor;
    }

    public void setVendor(Collection<VendorEntity> vendor) {
        this.vendor = vendor;
    }
    
  
    public RawMaterialEntity() {
        super();
    }

    public int getLeadTime() {
        return leadTime;
    }

    public void setLeadTime(int leadTime) {
        this.leadTime = leadTime;
    }

    public int getLotSize() {
        return lotSize;
    }

    public void setLotSize(int lotSize) {
        this.lotSize = lotSize;
    }
    
    public int getShelfLife(){
        return shelfLife;
    }
    
    public void setShelfLife(int life){
        shelfLife = life;
    }
}
